#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/5/5 11:45
# @Author  : LiShan
# @Email   : lishan_1997@126.com
# @File    : demo.py
# @Note    : this is note

import matplotlib.pyplot as plt
import numpy as np
# 绘图
x = np.linspace(0, 99, 100)
plt.plot(x, 0.95*0.98**x)
plt.plot(x, 0.95*0.90**x)
plt.plot(x, 0.95*0.80**x)
# 设置坐标轴名称
plt.xlabel("Episode", fontproperties="Times New Roman", size=10.5)
plt.ylabel("Epsilon", fontproperties="Times New Roman", size=10.5)
# 设置网格
plt.grid()
# 设置图例
legend = ["0.98", "0.90", "0.80"]
plt.legend(legend, loc="best", frameon=False)
# 设置标题
plt.title("The Epsilon Curve", fontproperties="Times New Roman", size=10.5)
# 保存图片
plt.savefig("demo.svg")
# 关闭绘图
plt.close()

DAMPING = (0.15/0.95)**(1/100) # 探索衰减因子
print(DAMPING)
